<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of CMS_Config
 *
 * @author Lucas Pinheiro
 */
require APPPATH . "third_party/MX/Config.php";
class CMS_Config extends MX_Config {

    //put your code here

    public function __construct() {
        parent::__construct();
    }

    // -------------------------------------------------------------

    /**
     * Template URL
     * Returns base_template [. uri_string]
     *
     * @access public
     * @param string $uri
     * @return string
     */
    function base_template($uri = '') {
        return 'templates/' . $this->slash_item('template') . ltrim($this->_uri_string($uri), '/');
    }

    // -------------------------------------------------------------

    /**
     * base CMS
     * Returns base_template [. uri_string]
     *
     * @access public
     * @param string $uri
     * @return string
     */
    function base_cms($uri = '') {
        return $this->slash_item('base_url') . $this->slash_item('base_cms') . ltrim($this->_uri_string($uri), '/');
    }

    // -------------------------------------------------------------
}

?>
